package edu.zju.gis.dbfg.fileserver.service.impl;

import edu.zju.gis.dbfg.common.base.BaseServiceImpl;
import edu.zju.gis.dbfg.fileserver.mapper.UserMapper;
import edu.zju.gis.dbfg.fileserver.model.User;
import edu.zju.gis.dbfg.fileserver.model.search.UserSearch;
import edu.zju.gis.dbfg.fileserver.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author Hu
 * @date 2019/8/26
 **/
@Service
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User, String> implements UserService {

  @Override
  public User select(String name, String password) {
    return mapper.check(name, password);
  }

  @Override
  public  User selectByName(String name){
    return mapper.selectByName(name);
  }
}
